package Controllers;

import java.text.DecimalFormat;

public class XuLyCurrency {

    public static String priceWithDecimal(String price) {
        DecimalFormat formatter = new DecimalFormat("###,###,###,###");
        return formatter.format(Double.parseDouble(price));
    }
    
    public static String remove(String price) {
        return price.replaceAll(",", "");
    }
}